home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / master / runtime_error < prev    next >
Text File  |  2001-04-06  |  1KB  |  29 lines

  1. SYNOPSIS
  2.         void runtime_error( string err, string prg, string curobj, int line
  3.                       , mixed culprit)
  4.  
  5. DESCRIPTION
  6.         This function has to announce a runtime error to the active
  7.         user. If the user has enough privileges, it might give him the
  8.         full error message together with the source line. Else it
  9.         should issue a decent message ("Your sensitive mind notices a
  10.         wrongness in the fabric of space").
  11.  
  12.     <err> is the error message, <prg> is the program executed (which
  13.     might be an inherited program), <curobj> is the current object at the time
  14.     of the error. <line> is the linenumber within the program.
  15.  
  16.     If the error is a normal runtime error, <culprit> is -1. Otherwise,
  17.     the error occured during a heartbeat and <culprit> is the object which
  18.     heart_beat() function was executed. Also, in case of a heartbeat error,
  19.     the heartbeat for the <culprit> has been turned off.
  20.  
  21.     Note that any of the the objects or programs might be destructed, ie.
  22.     might be passed as 0.
  23.  
  24. HISTORY
  25.         LDMud 3.2.9 added the <culprit> argument.
  26.  
  27. SEE ALSO
  28.         log_error(M), heart_beat_error(M), raise_error(E), expand_define(E)
  29.